home *** CD-ROM | disk | FTP | other *** search
RISC OS BBC BASIC V Source | 1994-06-14 | 825 b | 37 lines |
- >ColTest
- " at line ";
- C%=0
- 0 :
- "X480 Y352 C2"
- 1 :
- "X480 Y352 C4"
- 2 :
- "X480 Y352 C16"
-
- 3 :
- "X480 Y352 C256"
-
- 4 :
- "X480 Y352 C32K"
-
- 5 :
- "X480 Y352 C16M"
- x%=0
- y%=0
-
- setcolour(x%,y%,0,0)
- %
- 69,(x%<<1)+224,(y%<<1)+96
-
- A=
- PROCsetcolour
- r%, g%, b% set the amounts of red green and blue for the desired
- colour, Colourtrans will be used to pick the closest colour
- and set it. effect is a standard GCOL effect field
- Use SWI number for speed :
- ColourTrans_SetGCOL = &40743
- setcolour(r%,g%,b%,effect%)
- colour%
- !%colour%=(b%<<24)+(g%<<16)+(r%<<8)
- &40743,colour%,,,0,effect%
-